home *** CD-ROM | disk | FTP | other *** search
Wrap
========== Description Part Begin ========== Title = email ProgID = PageletServer.JsBox LastUpdateTime = 36432.397812500 PreviewPath = Description = check the input is a email address or not. ========== Description Part End ========== ========== Parameter Part Begin ========== EmailAlertTag = There are something wrong with the E-Mail address. Please assure you input the '@'. EmailAlert = There are something wrong with the E-Mail address. Please check the .com,.net,.org,.gov or.mil are contained in E-mail address. EmailInputPara = 40,Center,Submit,http://www.cutepage.com,http:,www.cutepage.com JsBoxType = 7 ========== Parameter Part End ========== ========== Resource Part Begin ========== Resource Number = 0 ========== Resource Part End ========== ========== HTML Part Begin ========== Segment Number = 2 Segment Position = script <script language="javascript"> function emailCheck(formname,alertemail, alertsuffix) { txt=document.forms[formname].email.value; if (txt.indexOf("@")<3){ alert(alertsuffix); return false;} if ((txt.indexOf(".com")<5)&&(txt.indexOf(".org")<5) &&(txt.indexOf(".gov")<5)&&(txt.indexOf(".net")<5) &&(txt.indexOf(".mil")<5)){ alert(alertemail); return false;} } </script> ===== Segment End ===== Segment Position = cursor <script language="javascript"> srctecformemailemailalerttextofemailtag="There are something wrong with the E-Mail address. Please assure you input the '@'." srctecformemailemailalerttextofemail="There are something wrong with the E-Mail address. Please check the .com,.net,.org,.gov or.mil are contained in E-mail address." </script> <form name="srctecformemailemail" action="http://www.cutepage.com" enctype="text/plain" method="post" onsubmit="return emailCheck('srctecformemailemail',srctecformemailemailalerttextofemail,srctecformemailemailalerttextofemailtag)"> <div align="Center"> <input type="text" name="email" size=40 value=""> <input type="submit" name="email1" value="Submit"> </div> </form> ===== Segment End ===== ========== HTML Part End ==========